#tree.py
#coding=utf-8
import os

def tree(filepath):
	if os.path.isfile(filepath):
		print(filepath)
	elif os.path.isdir(filepath):
		files = os.listdir(filepath)
		for f in files:
			tree(filepath + "/" + f)
	else:
		print("error\n")

tree(input("input your path\n"))